package com.example.demo.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.example.demo.entify.Menu;
import com.example.demo.entify.Role;
import com.example.demo.entify.User;
import com.example.demo.entify.UserRole;
@Repository
public interface UserRoleDao {
	
	
		int saveUserRole(UserRole user);
		//查看用户属于哪个角色
		User findRoleByname( String username);
		//查看角色拥有的权限
		List<Role> findMenuByname(int id);
		

}
